package org.example.webaiproject05.service;

import org.example.webaiproject05.pojo.Emp;
import org.example.webaiproject05.pojo.EmpQueryParam;
import org.example.webaiproject05.pojo.PageResult;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.util.List;

public interface EmpService {

//    PageResult<Emp> page(Integer page, Integer pageSize,String name, Integer gender, LocalDate begin, LocalDate end);
    PageResult<Emp> page(EmpQueryParam empQueryParam);

    void save(Emp emp);


    void delete(List<Integer> ids);
//根据id查询员工
    Emp getById(Integer id);
//修改员工
    void update(Emp emp);
}
